package Cn.Sarkar.IMS.DataBaseDefinations

import Cn.Sarkar.Entities.Common.Table
import Cn.Sarkar.EntityDream.CoreEngine.RDBMS.Core.Extensions.intColumn
import Cn.Sarkar.EntityDream.CoreEngine.RDBMS.Core.Extensions.reference
import Cn.Sarkar.EntityDream.CoreEngine.RDBMS.Core.Extensions.unique

object DomainProducts : Table("DomainProduct") {
    override var Comment: String = "بىر شىركەت ياكى ئەپ تەۋەسىدىكى بارلىق مەھسۇلاتلار"
    val IMSApplicationDomainID = intColumn("IMSApplicationDomainID") reference IMSApplicationDomains.ID
    val ProductID = intColumn("ProductID") reference Products.ID
    override val CATEGORY: Int = 12

    init {
        unique(IMSApplicationDomainID, ProductID)
    }
}